﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ConsoleApp1
{
    class ChangeTeacher
    {
        public string Name { get; set; }
        public static string TeacherName;
        public ChangeTeacher(string name)
        {
            this.Name = name;
        }

        public void SayStudent()
        {
            Console.WriteLine("大家好，我的名字是{0}，我的老师是{1}",this.Name,TeacherName);
        }
    }
}
